package com.haoshuang.zhouzhoubang.ui.adapter

import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemEwBinding
import com.haoshuang.zhouzhoubang.model.bean.OrderDetail2Bean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 订单模块中的订单列表适配器
 * */
class EwAdapter(data: MutableList<OrderDetail2Bean.CostList>) :
    BaseBindingQuickAdapter<OrderDetail2Bean.CostList, ItemEwBinding>(data){


    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: OrderDetail2Bean.CostList?
    ) {
        val binding = ItemEwBinding.bind(holder.itemView)
        binding.apply {
            tvName.text=item?.cost_name
            tvPrice.text="¥"+item?.money

        }
    }

}